package Staff;

import Organization.Department;

public class ParttimeStaff implements Staff {
    private String name;
    private double hourlyPay;
    private int workHours;

    @Override
    public void accept(Department handler) {
        handler.analyze(this);
    }

    public ParttimeStaff(String name, double hourlyPay, int workHours) {
        this.name = name;
        this.hourlyPay = hourlyPay;
        this.workHours = workHours;
    }

    public String getName() {
        return name;
    }

    public double getHourlyPay() {
        return hourlyPay;
    }

    public int getWorkHours() {
        return workHours;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setHourlyPay(double hourlyPay) {
        this.hourlyPay = hourlyPay;
    }

    public void setWorkHours(int workHours) {
        this.workHours = workHours;
    }
}
